import request from '/@/utils/request';

/**
 * 字典管理API
 */

/**
 * 添加字典
 * @param params
 */
export function addDict(params: Object) {
    return request({
        url: '/sysDictType',
        method: 'post',
        data: params,
    });
}

/**
 * 修改字典
 * @param params
 */
export function updateDict(params: Object) {
    return request({
        url: '/sysDictType',
        method: 'put',
        data: params,
    });
}


/**
 * 查询字典列表
 * @param params
 */
export function queryList(params: Object) {
    return request({
        url: '/sysDictType/list',
        method: 'get',
        params: params,
    });
}


export function deleteTypes(params:any){
    return request({
        url: '/sysDictType/'+params,
        method: 'delete'
    });
}


